package com.ys.entity.bi;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="[kjecp_report].[dbo].BI_FinancialFunds", catalog="Id")
public class BiFinancialFunds extends BaseEntity<BiFinancialFunds> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="AccountType", nameJava="accountType", typeDataBase="tinyint")
	private Integer accountType;
	@YsField(nameDataBase="Vid", nameJava="vid", typeDataBase="varchar")
	private String vid;
	@YsField(nameDataBase="Vname", nameJava="vname", typeDataBase="varchar")
	private String vname;
	@YsField(nameDataBase="CurrencyCode", nameJava="currencyCode", typeDataBase="varchar")
	private String currencyCode;
	@YsField(nameDataBase="Amount", nameJava="amount", typeDataBase="decimal")
	private BigDecimal amount;
	@YsField(nameDataBase="YesterdayIncome", nameJava="yesterdayIncome", typeDataBase="decimal")
	private BigDecimal yesterdayIncome;
	@YsField(nameDataBase="YesterdayOutgo", nameJava="yesterdayOutgo", typeDataBase="decimal")
	private BigDecimal yesterdayOutgo;
	@YsField(nameDataBase="FinancialFundsSort", nameJava="financialFundsSort", typeDataBase="tinyint")
	private Integer financialFundsSort;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="WriteTime", nameJava="writeTime", typeDataBase="date")
	private String writeTime;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public BiFinancialFunds setId(Long id) {
		this.id = id;
		return this;
	}
	public String getCode() {
		return code;
	}
	public BiFinancialFunds setCode(String code) {
		this.code = code;
		return this;
	}
	public Integer getAccountType() {
		return accountType;
	}
	public BiFinancialFunds setAccountType(Integer accountType) {
		this.accountType = accountType;
		return this;
	}
	public String getVid() {
		return vid;
	}
	public BiFinancialFunds setVid(String vid) {
		this.vid = vid;
		return this;
	}
	public String getVname() {
		return vname;
	}
	public BiFinancialFunds setVname(String vname) {
		this.vname = vname;
		return this;
	}
	public String getCurrencyCode() {
		return currencyCode;
	}
	public BiFinancialFunds setCurrencyCode(String currencyCode) {
		this.currencyCode = currencyCode;
		return this;
	}
	public BigDecimal getAmount() {
		return amount;
	}
	public BiFinancialFunds setAmount(BigDecimal amount) {
		this.amount = amount;
		return this;
	}
	public BigDecimal getYesterdayIncome() {
		return yesterdayIncome;
	}
	public BiFinancialFunds setYesterdayIncome(BigDecimal yesterdayIncome) {
		this.yesterdayIncome = yesterdayIncome;
		return this;
	}
	public BigDecimal getYesterdayOutgo() {
		return yesterdayOutgo;
	}
	public BiFinancialFunds setYesterdayOutgo(BigDecimal yesterdayOutgo) {
		this.yesterdayOutgo = yesterdayOutgo;
		return this;
	}
	public Integer getFinancialFundsSort() {
		return financialFundsSort;
	}
	public BiFinancialFunds setFinancialFundsSort(Integer financialFundsSort) {
		this.financialFundsSort = financialFundsSort;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public BiFinancialFunds setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getWriteTime() {
		return writeTime;
	}
	public BiFinancialFunds setWriteTime(String writeTime) {
		this.writeTime = writeTime;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public BiFinancialFunds setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public BiFinancialFunds setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public BiFinancialFunds setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static BiFinancialFunds biFinancialFunds(
		String code,
		Integer accountType,
		String vid,
		String vname,
		String currencyCode,
		BigDecimal amount,
		BigDecimal yesterdayIncome,
		BigDecimal yesterdayOutgo,
		Integer financialFundsSort,
		String remark,
		String writeTime,
		Integer status
			) {
		BiFinancialFunds entity = new BiFinancialFunds();
		entity.setCode(code);
		entity.setAccountType(accountType);
		entity.setVid(vid);
		entity.setVname(vname);
		entity.setCurrencyCode(currencyCode);
		entity.setAmount(amount);
		entity.setYesterdayIncome(yesterdayIncome);
		entity.setYesterdayOutgo(yesterdayOutgo);
		entity.setFinancialFundsSort(financialFundsSort);
		entity.setRemark(remark);
		entity.setWriteTime(writeTime);
		entity.setStatus(status);
		return entity;
	}
}